<template>
  <div class="active-area-box">
      <div class="select1">
          <AreaSelect></AreaSelect>
      </div>
    <ActiveTime></ActiveTime>
    <TabArea></TabArea>
    <DetailsDialog></DetailsDialog>
  </div>
</template>

<script>
import { Bus } from "../../Bus";
import AreaSelect from "../../components/sales/areaSelect";
import ActiveTime from "../../components/active/activeTime";
import TabArea from "../../components/sales/TabArea";
import DetailsDialog from "../../components/sales/DetailsDialog";
export default {
  components: {
    ActiveTime,
    TabArea,
    AreaSelect,
    DetailsDialog,
  },
  data() {
    return {
      isShow: true,
      lists: [
        {
          name: "省",
          prop: "province",
        },
        {
          name: "市",
          prop: "city",
        },
        {
          name: "区",
          prop: "area",
        },
        {
          name: "总活跃度",
          prop: "sales",
        },
      ],
      areaDatas: [
        {
          province: "四川省",
          city: "成都市",
          area: "高新区",
          sales: 676,
        },
      ],
    };
  },
  mounted() {
    Bus.$emit("isshowcity", this.isShow);
    Bus.$emit("isshowarea", this.isShow);
    Bus.$emit("area-lists", this.lists);
    Bus.$emit("area-datas", this.areaDatas);
  },
};
</script>

<style lang="less" scoped>
.active-area-box {
  padding-top: 30px;
}
.active-time {
  margin: 30px 0px 0px 30px;
}
.select1 {
  margin-left: 30px;
  margin-right: 50px;
  width: 400px;
}
</style>